// user服务
define('infoSourceServers', ['angular','jquery'], function (angular,$) {
    var module = angular.module('servers');
    module.factory('infoSourceServers', ['$http','Urlconfig',function($http,Urlconfig) { 
        var obj = {
            //获取信息来源通过pid
            getSourceByPid: function (pid) {
                return $http({
                    method  : 'POST',
                    url: 'http://'+Urlconfig.apiUrl+':8888/api/infoSource/getSourceByPid',
                    data:$.param({pid:pid}),
                    cache:true,
                    headers : { 'Content-Type': 'application/x-www-form-urlencoded' }
                }).then(function (response) {
                    return response.data;
                });
            }
        };
        return obj;
    }]);
});